package com.cl.code.database.mybatis.module.sql.operator;

import lombok.Getter;

/**
 * 比较运算符
 *
 * @author chengliang
 * @since 1.0.0
 */
@Getter
public enum CompareSqlExpression implements SqlExpression {
    EQUAL(" #{column} = #{value}"),
    NOT_EQUAL(" #{column} != #{value}"),
    GREATER_THAN(" #{column} > #{value}"),
    GREATER_THAN_OR_EQUAL(" #{column} >= #{value}"),
    LESS_THAN(" #{column} < #{value}"),
    LESS_THAN_OR_EQUAL(" #{column} <= #{value}"),
    ;

    private final String expression;

    CompareSqlExpression(String expression) {
        this.expression = expression;
    }

}
